package com.chzn.component;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.ObjectFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class PeopleService  {

	private  static  ObjectFactory<PersonService> personServiceObjectFactory =new ObjectFactory<PersonService>() {
		@Override
		public PersonService getObject() throws BeansException {
			return null;
		}


	};


	public static void main(String[] args) {
		System.out.println(PeopleService.personServiceObjectFactory instanceof ObjectFactory);
	}
}
